<template>
	<div v-loading="loading" class="wrap">
		<s-person-list :data="item" v-for="(item,index) in goods" :key="index"></s-person-list>
	</div>
</template>
<script>
	import { fetchUserInfoGoods } from "../../../../../api/api.js"
	export default {
		data() {
			return {
				loading: true,
				goods: null
			};
		},
		created() {
			this.getGoods();
		},
		methods: {
			getGoods() {
				this.loading = true;
				fetchUserInfoGoods().then( res => {
					this.loading = false;
					this.goods = res.data.result;
				} ).catch( err => {
					alert(err);
					console.log(err);
				} );
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		min-height: rem(250);
	}
</style>